home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / sunrpc / bindresvport.man < prev    next >
Encoding:
Text File  |  1992-03-15  |  1013 b   |  67 lines

  1.  
  2.  
  3.  
  4. BINDRESVPORT          C Library Procedures           BINDRESVPORT
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      bindresvport - bind a socket to a privileged IP port
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
  13.      ##iinncclluuddee <<nneettiinneett//iinn..hh>>
  14.  
  15.      bbiinnddrreessvvppoorrtt((ssdd,, ssiinn))
  16.         iinntt ssdd;;
  17.         ssttrruucctt ssoocckkaaddddrr__iinn **ssiinn;;
  18.  
  19. DDEESSCCRRIIPPTTIIOONN
  20.      bbiinnddrreessvvppoorrtt is used to bind a socket descriptor to a
  21.      privileged IP port, that is, a port number in the range 0-
  22.      1023.  The routine returns 0 if it is successful, otherwise
  23.      -1 is returned and _e_r_r_n_o set to reflect the cause of the
  24.      error.
  25.  
  26.      Only root can bind to a privileged port; this call will fail
  27.      for any other users.
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0              6 October 1987                         1
  64.  
  65.  
  66.  
  67.